package com.usian.behavior.controller;

import com.usian.apis.behavior.UnLikeBehaviorControllerApi;
import com.usian.behavior.service.UnLikesBehaviorService;
import com.usian.model.behavior.dtos.UnLikesBehaviorDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/unlikes_behavior")
public class UnLikeBehaviorController implements UnLikeBehaviorControllerApi {
    @Autowired
    private UnLikesBehaviorService unLikesBehaviorService;

    @Override
    @PostMapping
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto dto) {
        return unLikesBehaviorService.unlike(dto);
    }
}
